<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function Father(name, age) {
    this.name = name;
    this.age = age;
  }
  Father.prototype.money = function () {
    console.log(100);
  }

  function Son(name, age, score) {
    Father.call(this, name, age);
    this.score = score;
  }

  Son.prototype = new Father();
  Son.prototype.constructor = Son;
  Son.prototype.exam = function () {
    console.log("要考试");
  }

  var son = new Son('xiaohua', 18, 100);
</script>
</body>
</html>